local skynet = require "skynet"

local gateserver, fd= ...
fd = tonumber(fd) --必须要转换成整形数，skynet命令行传入的参数都是字符串
skynet.start(function()
    skynet.call(gateserver, "lua",  "kick", fd)
    skynet.exit()
end)

--  ./skynet examples/config
-- openmygateserver   #终端输入
-- [:01000010] LAUNCH snlua openmygateserver
-- [:01000010] Server start
-- [:01000012] LAUNCH snlua mygateserver  #网关启动
-- [:01000012] Listen on 0.0.0.0:8002
-- [:01000012] open by  :01000010
-- [:01000012] listen on 8002
-- [:01000012] client max 64
-- [:01000012] nodelay true
-- [:01000010] gate server setup on 8002
-- [:01000010] KILL self
-- [:01000012] ipaddr: 127.0.0.1:49038 fd: 9 connect #一个先的客户端连接进来，fd为9
-- kickmygateserver :01000012 9   #终端输入给网关服务也就是:01000012发送lua消息关闭9号fd
-- [:01000020] LAUNCH snlua kickmygateserver :01000012 9
-- [:01000012] source: :01000020 kick fd: 9
-- [:01000020] KILL self
-- [:01000012] fd: 9 disconnect  #fd 9关闭收到反馈。
